/**
 * 表单自定义控制器
 */
app.controller('btnCtrl', ['$scope', '$http', BtnController]);
function BtnController($scope, $http) {
	$scope.bindBtn = function(event) {
		switch(event){
			case 'event-to-add': // 新增员工工资条
			{
				var listUkey = [];
				for(var i=0;i<$scope.subGrid.sonlist.length;i++){
					var data = $scope.subGrid.sonlist[i];
					listUkey.push(data.id);
				}
				$scope.showModalCheckBox('TB_UserPaySlipAp', 'id', listUkey);
				break;
			}
			case 'event-to-delete': // 删除员工工资条
			{
				$scope.subGrid.deleteBatch();
				break;
			}
		};
	}

}



